javascript map method interview question

visit shbcf.ru